<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        * {
            margin: 0;
            padding: 0;
        }


        .demo{
            width: 22px;
            height: 22px;
            color: #fff;
            text-align: center;
            margin: auto 0px auto 10px;  /*上 右 下 左*/
            border-radius: 20px;
            border: 2px solid #ec8b05;
            background-color: #ec8b05;
            display: inline-block;
        }
        .demo2{
            width: 22px;
            height: 22px;
            color: #fff;
            text-align: center;
            margin: auto 0px auto 10px;
            border-radius: 20px;
            border: 2px solid red;
            background-color: red;
            display: inline-block;
        }
    </style>
</head>
<body>


<div style="margin: 50px auto;width: 100px">
    <div class="demo">11</div>

    <div class="demo2">22</div>
</div>



</body>
</html>